package polimi.disttest.manager;

public class Node {
	
	private MachineSSHAddress m;
	private Integer id;
	
	public Node(MachineSSHAddress m, Integer id) {
		this.m = m;
		this.id = id;
	}
		
	public MachineSSHAddress getMachineSSHAddress() {
		return m;
	}
		
	public Integer getID() {
		return id;
	}
	
	public String toString() {
		return m.toString() + "/" + id;
	}
	
	public int hashCode() {
		return toString().hashCode();
	}
	
	public boolean equals(Object o) {
		return o.hashCode()==hashCode();
	}
}
